/*用户记录本接口*/
import request from "@/utils/request";

//添加用户记录本
export function addRecord(data){
    return request({
        url:'/Record/addRecord',
        method:'post',
        data
    })
}

//获取当前登录用户的全部记录本
export function getMyRecordInfo(data){
    return request({
        url:'/Record/getMyRecordInfo',
        method:'post',
        data
    })
}

//根据记录本id删除该记录本
export function deleteRecord(data){
    return request({
        url:'/Record/deleteRecord',
        method:'post',
        data
    })
}

//修改记录本权限
export function updateAuthority(data){
    return request({
        url:'/Record/updateAuthority',
        method:'post',
        data
    })
}

//获取用户公开的记录本
export function getUserRecordInfo(data){
    return request({
        url:'/Record/getUserRecordInfo',
        method:'post',
        data
    })
}

//根据记录本id获取该记录本信息
export function getRecordByID(data){
    return request({
        url:'/Record/getRecordByID',
        method:'post',
        data
    })
}

//修改记录本内容
export function updateRecord(data){
    return request({
        url:'/Record/updateRecord',
        method:'post',
        data
    })
}
